(Internal) How is time in stage calculated?