Fixed a bug in  calculating the last sunday. It had problems with the month
switchover. The new solution is agnostic to month overlapping.