Calculates the distance to the next level if the UpToLevel parameter is set.
Distance to the next level, or 0 if the parameter is not set, or the distance is negative.