Adding frontmatter values from daily notes into weekly note

I use frontmatter in daily notes to track habits, and I want to be able to add these values together into my weekly note, which then populate my monthly note without having to re enter any values.
day1 - habit1::5
day2 - habit1::10
these values are added together into weekly note:
and then the weekly note values are added into the monthly note.

How can I do this? It was mentioned in this post as a potential improvement, but it doesn’t look like it was ever implemented. Or is there a better approach for what I want to do?

What I’m trying to do

The syntax you’re using isn’t Obsidian’s frontmatter syntax — it’s the DataView plugin’s inline data syntax. Which is just as well, because you’ll need DataView to do what you want. I can’t give you the details, but it has pretty good documentation and there are lots of people using it who can answer questions.