Dry styling and fix bugs in trip calc.
Add message for entries in second field for square root function.