Returns a calculated result to the calling function