calc the property from parents recursion