BUG: Period check must accept the current date to be the first or the last.

If the current date is the first (or last) in a period the check
for forst<DATE(NOW()) will fail to count. 363 days every year
this is without a problem, the remaining two days will get
problematic. Corner case.