Updated TimeCalculator

various  JavaScript changes, added CSS styles