Date differences are very easy to compute using Julian Date, which is an integer representation of a date. Oracle has conversion functions to and from Julian Date.