Have you built any queries which gives you part of the data you’re wanting to see? What have you tried?
I see one possible “issue” with your format, and that is that you don’t seem to have a way to easily pickout the entries which are related to teaching, unless you can rely on those being the only ones starting with the text of “Teaching”. Similar would also apply to those other areas like “Research” and “Administration”.
Regarding the name of your files, you’ll need to tinker a bit with the file name in order to get at the date it represent. This would potentially require some usage of the startswith function, or substring function, which could lead to sub-optimal performance.
If you’re using templates to create your files, I would strongly consider to add a date field to the frontmatter to have easy access to the date of the current file.
I would also suggest doing something like the following to help pick out the topics of your items more easily:
Hope this helps a little, but it would nice to see what you’ve tried, and which queries you’ve come up with so far, and also the expected output (even though/if you can’t get that with your current queries)
Step 1: Find the file containing the teaching task. The script I provide can do this
Step 2: According to the file meta information found, count the time you need, which I don’t know
The ‘path’ of the script means that you need to search the teaching folder path and need to modify it