A program writting in QT that is able to tell what the time to an event is