wip calculations