Optimizing tax: Allocating between manufacturing and non-manufacturing with a tax engine