YOU SAID:
Sometimes I drink beer when I am by myself
INTO JAPANESE
私は一人でいるときに時々ビールを飲みます
BACK INTO ENGLISH
I sometimes drink beer when I am alone
INTO JAPANESE
私は一人でいるとき私は時々ビールを飲みます
BACK INTO ENGLISH
I sometimes drink beer when I am alone
Come on, you can do better than that.