Merge formula