How do you determine the apparent magnitude of the stars leaving main sequence with CMD diagrams? So I have a CMD diagram and on the left, I have apparent magnitude and at the bottom, I have the color index. I would just estimate the magnitude of stars leaving the main sequence and continue from there, however, I was wondering if there's a way to do it more accurately?

I would take stars between certain magnitudes and calculate the average magnitude, but again, I'm estimating from where to where the MSTO point is...
There is no clearly-defined "turn-off" magnitude. Stars move from the zero age main sequence (roughly speaking, where core hydrogen burning begins to dominate the luminosity) to the terminal age main sequence (where the core hydrogen runs out) relatively slowly, increasing in luminosity as they do so. Their evolution then accelerates redward in the colour magnitude diagram. The turn-off is roughly the most luminous star for which this acceleration in evolution is yet to occur, but this is confused/blurred by observational uncertainties, binarity, differential reddening and spreads in age and rotation rate.

In practice what you do if you really want to do a proper job of estimating the age, with uncertainties, is you do a population synthesis (including binaries and observational uncertainties) for clusters of stars with a variety of ages. You then compare these with the observations using maximum likelihood or Bayesian techniques (e.g. Naylor &amp; Jeffries 2006).