I've uploaded a new version of the spreadsheet that includes calculations for a trade-in vehicle (presuming Tesla works out a way to take trade-ins). It could also be useful to just factor in the value of your current vehicle, but the sales tax calculations will be incorrect in that case.