cast to duration
(the var should be duration, no point for int)
need to learn how to compare dates so this wil compile