How can I calculate how many days overlap date ranges?
I'm working out complex child custody arrangements, and need to calculate how many days each year the child is in mom's custody and how many days in dad's.
Custody alternates weeks - starting Monday (week 1=dad, week 2=mom, etc.). I've figured out how to determine if a single day falls on dad's or mom's week:
There are a bunch of holidays which override the regular alternating weeks. For example, with dad on Christmas Eve and Day in Even years (e.g., with dad 12/24/2010 - 12/25/2010).
So, to calculate the total days, I need to figure out how many days of each holiday falls on the OTHER parents regular week? i.e., how many days in the range 12/24/2010 through 12/25/2010 (dad's year) fall on Mom's regular week? if it all falls on dad's regular week, he gains no days. But if one or two days fall on mom's regular week, dad will gain a day or two that year. I'll have to do this calculation for every holiday.
Given a start date, an end date and custodial parent, how can I calculate the number of days taken from the other parent in Excel 2007?
Thank you!
Bookmarks