How stress impacts energy and productivity