calculate answer