Use `env.block.time - consensus_state.timestamp` together with `expired` function of the client Code: https://github.com/ComposableFi/composable-ibc/blob/02ce69e2843e7986febdcf795f69a757ce569272/light-clients/ics10-grandpa-cw/src/contract.rs#L354