unit cost computation