hopefully got calculation right