I have a template that I use to note my hours worked. In it I use the inline field:
Hours::
I can collect the data for the last week using a table, and it works fine:
table
Day,
time-start as Start,
time-end as End,
Hours
from #work
where date(file.day).weekyear = date(2021-11-22).weekyear and date(file.day).year = 2021
sort date(file.day) asc
This works fine.
What I’m trying to do
But what I’d like is to be able to grab all the entries from the Hours column for that same week and add them all up.
In pseudo code it might look something like:
=sum(all Hours from #work where the date is this week)
I’m guessing I have to do it with JavaScript. 
Thoughts?