paint job gone bad and need help

Here are a few pics.....I have several places that look like this. I still have about a half gallon left. Possibly enough to add a few coats when the repairs are done. How long will the paint stay good in the can?