         byProject = _.groupBy entries, (entry) -> entry.customer_project_id
         _.mapValues byProject, (entries, projectId) ->
             _.reduce( entries, (total, entry) ->
-                total.plus(entry.hours)
+                total.plus(entry.lengthInRange(days, 'hours'))
             , _.bigDecimal('0'))

        @trigger('change', @)

    totalHours: ->
        @entries.reduce( (sum, entry) ->
            sum.add(entry.hours)
        , _.bigDecimal('0') )

    totalsForWeek: (week) ->

            deps: ['display'], fn: -> 'month' == @display
        range:
            deps: ['date', 'isMonth'], fn: ->
                _.moment.range(
                    @date.clone().startOf( @display ), @date.clone().endOf( @display )
                )

        calLegend:
            deps: ['range', 'display'], fn: ->
