check timeframe type & conditions right in 'when'