calc for realm and realm + service