Deductions & credits

Are the new lithium batteries an addition to the system or a replacement for batteries previously existing in the system?  If the batteries are replacements for existing, then their cost would either be a non-deductible repair cost or, at best, receive a partial credit to the extent that the capacity of the new batteries (kWh) exceed the capacity of the replaced batteries.