In Crystal 8.5, you need something like this
DateDiff ("d", {DLY_ACTIVITY.ACTIVITY_DT}, SO_DATE)
This gives the difference in days, there are other options. Getting the two dates in the same section is not so straightforward, it depends on your data. You do have Next and Previous commands for records, or you can group and find the maximum and minimum values.
Madawc Williams
East Anglia, Great Britain