Adding dynamic calculation button