Ab initio calculations of optical rotation