wip formula