here is my modest understanding of daily islamic prayer :
(2*N)+2+(4*N)+4+(2*N)+(4*N)+4+3+(2*N)+4+(2*N)+3
(2*N) fajr
2 sobh
(4*N) before dohr
4 dohr
(2*N) after dohr
(4*N) before asr
4 asr
3 maghreb
(2*N) after maghreb
4 icha
(2*N) after icha
giving that N is either 0 or 1.