Time and your subconscious are excellent decision makers, editors, problem solvers, and healers. So when it's late, and you're tired and perplexed, simply go to bed. Let your mind do the work while you're enjoying a good night's sleep. Chances are, you'll awaken to a better answer, a brighter outlook, a clearer understanding of what to do.
When sleeping, you your mind is clean and clever, so it will make better decision for you. Something you can't do on day time, you can finish it in your dream.
This is not a joke, it is a good way to solve problems, it is worth your try.