route for total
table created for Days
reference to Day in Ods
date field type to date instead of datetime
o and d Total fields on Day

this are summary and auxiliary fields
Day has_many Ods
Summary of Days