Apple Numbers: how to change a date format to a number format
You can use a function to convert the duration to a plain number.  For example, if difference between the dates in in E4, and it's 10 days, then...

=DUR2HOURS(E4) × 0.1


Shows a number, 24.0. There are other functions that you might use: DUR2DAYS, etc.