The rates of type Ia supernovae - I. Analytical formulations