int week = now.weekOfWeekyear().get();
int day = now.dayOfMonth().get();
Duration currentMonth = minutes(repository.findByYearMonth(year, month));
Duration currentWeek = minutes(repository.findByYearWeek(year, week));
Duration today = minutes(repository.findByYearMonthDay(year, month, day));
Durations durations = new Durations(currentMonth, currentWeek, today);
String url = uriInfo.getAbsolutePath().toASCIIString();
LinkHeader linkHeader = new LinkHeader().addLink(null, SELF, url, null);
return Response.ok(durations).header("Link", linkHeader.toString()).build();
}