The more you invest in a bad relationship, the more it costs you.