[UPDATE] timeframe calculation