Provide a method for calculating a remaining time