Heart Rate Monitor

Hello! I recently started using a heart rate monitor with a Garmin watch for running and it works great! I take spin classes once a week and I was just wondering if anyone knows if a heart rate monitor will calculate calories burned while on a stationary bike?

If anyone has any info that would be great!!