add min time between two state changes