Fixed week calculation.
Corrected calculation of previous dates in the calendar month.