quarter_days(date)

Returns the number of days in the quarter for a specific date.