Cuando llego a casa por las noches estoy muy cansado.

English Translation

I am very tired when I get home at night.

Swapping sentences here is unnecessarily confusing. The better translation would be When I get home at night, I am very tired..