I have spell data containing beginning and end date of spell at daily level. I am looping through months and would like to count in each month the number of days that are covered by the spell.
For example, if start date is 30.03.2010 and end date is 30.12.2010, then the variable should count 2 days in March 2010 and 30 days in April 2010 etc.
For example, if start date is 30.03.2010 and end date is 30.12.2010, then the variable should count 2 days in March 2010 and 30 days in April 2010 etc.
Comment