month_days(date)

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

1q = foreach q generate month_days(BillDate) as "Days in Billing Month";