I'm brand new to the MVC coding style and i'm having trouble deciding if i placed my code in the right place. I have a list of rates for an item, the rates have various time frames. what i want to do is display the highest rate per item for the current day. so say if item 1 has 3 rates, and 2 of them overlap today, it will choose the highest of those 2 rates and display it.
I placed this in the view since it applies to the way i am displaying the data. this is in cakephp so it's a web platform if that changes the way you think the controller/view should be applied.