Microsoft will fund housing projects with at least 100 units that set aside at least 40 percent of those units for middle-income families, or 80 percent for low-income families. Real estate developers will further have to commit to keeping those units affordable for 10 years.