How do you know when it’s time to quit?
When it feels complete to you.
Either when you’ve achieved what you were seeking to achieve, or when you feel resolved in your heart that you are done.
But, if you quit because it’s hard, and yet there’s a nagging sense in your heart that you’re not finished, then you still have a way to go.
Keep going, the answer might be right around the corner.