Calling calculate button onclick