Session duration in notes

How can I edit my note templates so that the actual duration of a session shows up in a note? I always assumed this was happening because I can see the actual duration at the top of the note in my view. However, if I download a completed note, that information is not showing up in the notes. This is a non-negotiable for insurance billing.