Here's something from my own timesheets application:
(if $TimesheetDetail/SundayHours != empty then $TimesheetDetail/SundayHours else 0) + (if $TimesheetDetail/MondayHours != empty then $TimesheetDetail/MondayHours else 0) + (if $TimesheetDetail/TuesdayHours != empty then $TimesheetDetail/TuesdayHours else 0) + (if $TimesheetDetail/WednesdayHours != empty then $TimesheetDetail/WednesdayHours else 0) + (if $TimesheetDetail/ThursdayHours != empty then $TimesheetDetail/ThursdayHours else 0) + (if $TimesheetDetail/FridayHours != empty then $TimesheetDetail/FridayHours else 0) + (if $TimesheetDetail/SaturdayHours != empty then $TimesheetDetail/SaturdayHours else 0)
One further suggestion - you might consider using decimal attributes instead of floats, as floats are being deprecated. Using decimals will make your upgrade path simpler.