You do not need to use a macro. Add an unbound textbox to your form or report. Then as it's controlsource use the DateDiff() function. You can find more about DateDiff in help. For example, if you want to know the difference in hours between two dates your controlsource property would look something like this:
=DateDiff("h", [FirstDateField], [SecondDateField])