function for base ratio power