Deduct Expense in year it was paid or year it applies to?

I have a few expenses where the year I am paying is different from the year it applies to and not sure which year I should pay apply the expense to. Below are my two examples:

 

Business Travel: Paid for the tickets in 2024 for travel happening in early 2025

State Taxes: Paid my Q42024 payment in 2025