Hello Evelyn, I believe you are trying to say in this phrase what would you do if you are another person, right?
Then, I think you must to say like this: "If I was them, or If I were them, I would have spent my time with my family"
I hope this helps you :)