After moving functionality to calculate to cost of queries to date out of the view to the model

Signed-off-by: unknown <cnwnh1@cnwcb5a.cnw.co.nz>