Correction of start interval for long averaging intervals and limit of last release time to end of month