A mathematical formula reveals the length of love relationships