rewrite logic for calculation

thanks to
http://stackoverflow.com/questions/15524346/selecting-a-length-of-time-with-numericupdowns-and-windows-forms
for the result
add warning back