I'm assuming you made a transcription error with the equation.
max(1, num_ratings / median_num_ratings)
This would result in 1 if num_ratings <= median_num_ratings, and >1 if num_ratings > median_num_ratings. I'm assuming you meant "min" here, as that would match the description of the function.
Also side note: I feel like the median was possibly influenced by "invalid" submissions. I encountered a number of submissions that were not playable (at least on Windows or Browser, as the rules require), meaning they inherently got less ratings. I wonder how much this would have influenced the resulting median.