TeX source:
T_{\text{total}} = \int_0^N t_i , di