Hi,
Is this a correct sentence and free from error?
"from the last 5 months i haven't been to my home"
No. "For the last 5 months I haven't been home."
or "I haven't been home since 5 months ago."
Also, since you are asking about correctness, please note that in English a sentence should start with a capital letter and end with a period. In addition, the pronoun I should be capitalized.
Best wishes, Clive