Merge cost & optimization calculator by wishmaster3