wip integrate formula