Added funtionality to calculate button