Try a formula:
If not(isnull({table.date})) then
{table.date}-{table.date2}
else
0
Since count and sum are different, I assumed that you wanted the sum of the days difference, not a count of the rows which are not null.
To get a not null count, use:
If not(isnull({table.date})) then
1
else
0
In both cases, place the fields in the details and select insert->summary->sum
All of this assumes that you've done a Insert->Group->Select the date and select for each month
-k
-k