i posted this a long time ago see the notes i placed
Trend Analysis

Disclaimer