%use the 'daily' function as a guide for writing this one.