In reply to confused.

The INTCK and INTNX functions are extremely powerful when it comes to calculating time spans -- most other languages don't have analogies to these. This post was mostly about how you can extend the SAS language by adding your own functions.