Templating Help

Is it by design that remaining_days includes the current day?

For example, today is the 10th of May, a month with 31 days. The template reports there are 22 days remaining this month. Therefore it includes the current day (the 10th) as a ‘remaining day’.

In other words, if today was the 31st of May it would report there is one remaining day left.

I’m not claiming anything is wrong and only asking if this is the desired definition of ‘remaining days’ for this particular application.


EDIT
I think I’m overlooking the fact this is looking at the remaining days next month … I see what its doing. It uses the first day of the next month , last.date(), to represent the end of the period.