We own a cottage that we AirBnb part of the time. Do I claim all expenses, partial expenses to the amount of time available, or expenses equivalent to the time rented?

We purchased this cottage in 2021, so we had additional maintenance, such as refinishing cedar siding and installing a water filtration system.  These expenses won't be every year.  Trying to figure out how much I can claim.