How to carry 2023 investment expense to next year?

investment funds bought in 2022, then in 2023 the borrowing interest paid $30K, but no investment income. How to entry and carry over the paid expense to later years? Or simply do NOT enter them until next near? thanks