[BUGFIX] First day of month was ignored in calculation

Thanks to Wouter Wolters for this one :)