Everything is based on date of stay and not when you book.
A January 2023 trip is in your 2022 UY. To use your 2021 points, you have to bank them.
There would be no borrowing involved. That trip can be booked with banked 2021, 2022, and borrow up to 50% of your 2023 points.