Bugfix for duration calculation

End time is now converted to int before delay is added, so the calculated duration is correct in case delay > 0
Merge pull request #3 from dhoelzgen/patch-1

Bugfix for duration calculation
Merge remote-tracking branch 'upstream/master'