added calculation of time spent in each schedule state, regardless of month