I'd like to request some assistance.

How should I calculate the sampling rate for the ADC in a SAM21?

I know it involves the CPU clock, ADC prescaler, bits of resolution, sampling time, conversion time, and any other delays. But, I've read all the datasheets and ASF related documents and nowhere can I find a straightforward formula for calculating the actual sampling rate.

What would the formula be?

I would really appreciate any help.