start calculate button handler with checkings