My method is that I assume it's gone bad when it tastes sour.
For most foods evolution has graced us with the ability to see, smell or taste any issues well before they actually become a problem. There are some things you have to look out for like botulism or salmonella, but for simple foods like bread and milk there isn't much point in taking precautions