Corrected issue with calculate button