Create a purchasing matrix formula