Who told you that you need to spend the whole year here? It’s been posted many times it is 335 days in the first year and yes you can leave and return and still get HHR. You can have two trips abroad and still get HHR.
@comfy has travelled and will get his HHR soon.