return calculations