Cost model for software as a service