move calc to pages