Fixed incorrect due time calculation in timer based trigger (close #40)