No process, no metric can determine, when its time to give up on a startup idea. Running out of money might just be a temporary state. There are far more good ideas and investor money, than you think.
Mental energy, desire and passion for a project are the ultimate resources you need. Mental energy is the most limited resource in the whole startup ecosystem. Therefore it is essential (for you, and for the society) to validate business ideas and pursue only promising ones.