I am great friends with almost all my exes, they are family. Just because we did not work as a couple does not mean they are not good people.
It does take a while to disentagle feelings though.
I liked APrettys math equasion

I kind of go with half the time you were together, so in your case, a couple of years.
Beat to you and your doggie.