'calculate' in package body