Fixed some issues related to the miscalculation of date ranges (maximum and minimum).
Fixed some issues related to the miscalculation of date ranges (maximum and minimum).

pkdevbox/Ink,Anmo/Ink,sapo/Ink-doc,pkdevbox/Ink,sapo/Ink-doc,mubassirhayat/Ink,pkdevbox/Ink,pedrocorreia/Ink,rcarmo/Ink,Anmo/Ink,birthdayalex/Ink,birthdayalex/Ink,pedrocorreia/Ink,sapo/Ink,Anmo/Ink,sapo/Ink,sapo/Ink,rcarmo/Ink,birthdayalex/Ink,rcarmo/Ink,sapo/Ink-doc,mubassirhayat/Ink,pedrocorreia/Ink