I mean, you don't? You can look it up but recent advice was something like 10 days after first symptoms is when contagiousness reduces.
Anecdotally, my husband was sick on Friday and took rapid tests on Friday and Saturday (when he was very sick) and got negative. Then on Monday his rapid test was positive (followed by a positive PCR on Tuesday). So he was no doubt contagious on two days when he gave negative tests.
If you've recently had COVID, how do you know when it's safe to stay with an elderly or immunocompromised person? If you've had two negative tests 48 hours apart, what is the risk that you're actually still contagious? Is it more like 1%, .1%, .01%?