Update to template

Modify names of NAs.by.date