Operating Loss

When submitting my 2023 return a note came about indicating that if I operated at a loss the IRS will consider my business a hobby.  How long have I to show a profit before this happens?

Thanks