Arduino Sketch with working time-calculating-logic. If it is a cleversolution, I don't know.