def METHOD_NAME(creature_level, player_level, is_elite=False):
    if player_level >= 60:
        return 0
    gray_level = PlayerFormulas.get_gray_level(player_level)
    if creature_level <= gray_level:
        return 0
    base_xp = PlayerFormulas.base_xp_per_mob(player_level)
    multiplier = 2 if is_elite else 1
    if player_level < creature_level:
        if creature_level - player_level > 4:
            player_level = creature_level - 4  # Red mobs cap out at the same experience as orange ones.
        base_xp = int(base_xp * (1 + (0.05 * (creature_level - player_level))))
    elif player_level > creature_level:
        base_xp = int(base_xp * (1 - (player_level - creature_level) /
                                 PlayerFormulas.zero_difference_value(player_level)))
    return base_xp * multiplier