per unit calculation