calculate revenues