It would be super helpful to have an out-of-the-box function to return the number of days in the month for the specified timestamp, ie. DaysInMonth(2026-09-25) --> 30.
This would facilitate rates/volumes aggregations when the table has variable frequency (combination of daily and monthly data).