Riding an exercise bike for 30 minutes will burn burn off around 298 calories so if you want to burn off 500 calories you'll need to ride that exercise bike for at least an hour.
If you ride the exercise bike at a faster pace you may be able to burn off 500 calories in 40 minutes vs 1 hour.
But expect to ride the exercise bike for 1 hour to burn off 500 calories.