Deductions & credits

If travel is for a recognized charity those expenses are deductible in the year paid. Expenses should be ordinary and necessary so your upgrade would be problematic. See here for more information. 
https://blog.turbotax.intuit.com/tax-deductions-and-credits-2/deducting-travel-expenses-when-doing-c...