How do I workout my metabolic rate to allow me enough calories to exercise

How do I workout my metabolic rate to allow me enough calories to exercise