The answer to this question is called telecommuting or remote working arrangement. Telecommuting occurs when the employee is allowed to work from home for a certain period of time, thus decreasing the amount of time the employee has to spend in the office.
This arrangement is beneficial to both the employer and employee since the employer can reduce real estate cost for the office while the employee can reduce the associated stress with commuting to work as well as the costs.