def time_remaining(self, stage: str = RunningStage.TRAINING) -> Optional[float]:
        """Return the time remaining for a particular stage (in seconds)"""
        if self._duration is not None:
            return self._duration - self.time_elapsed(stage)
        return None
Return the time remaining for a particular stage (in seconds)
src/lightning/pytorch/callbacks/timer.py