public async Task <double> GetGastoEsperadoByClient(string clientId, DateTime dateTime) { double costoAnuncio = await _financieroService.CostoAnuncio(clientId); return((await _grupoService.GetByUser(clientId)) .Where(g => g.Activo) .Sum(g => g.Temporizadores .Where(t => t.Enable && t.UserEnable) .Sum(t => t.Costo(costoAnuncio, g.Anuncios.Where(a => a.Enable == true).Count(), dateTime)) )); }