year_days(date)

Returns the number of days in the year for a specific date.
q = foreach q generate year_days(BillDate) as "Days in Billing Year";