Created script to calculate total tile cost