Move a method that calculates remaining time to model class