That depends on your agreed working hours. You should agree on core working hours with your employer.
Outside of these core working hours, you can organize your working hours yourself. It is only important that you comply with the rules of the Working Hours Act. For example, you must have eleven hours of rest between two work assignments. In practice, this means: If you start work at 8 a.m., you can only work until 9 p.m. the previous day.
You must also pay attention to the adherence to the break times. After six hours of work, you need to take a break. These rules apply equally to part-time and full-time workers, regardless of whether they work in the office or from home.