Trifecta calculation

I was wondering if any of you fellas know the actual mathematical formula for calculating the number of possible combinations in a trifecta bet (or quartet for that matter) ?
Whilst I know you can look at a chart on the wall in most TAB shops to get a costing on trifectas there is a specific mathematical formula that is used. I used to know it and had it written down but lost it a few years ago
.
Whilst I know you can look at a chart on the wall in most TAB shops to get a costing on trifectas there is a specific mathematical formula that is used. I used to know it and had it written down but lost it a few years ago
