turns out that active_support gem is needed to make .hours work. We dont have the gem so Im going back to the previous way that this was done. i.e. 12*60*60