Thank you for your reply, this is all quite new for me so I'm sorry if I might be approaching this all wrong.
I have been experimenting a bit further, I wasn't aware of how to make a report without a record yet, but I found out how and I have made a simple basic report.
Now I have a report which lists all the lines in a certain class and reports the length of these in the table,
I also managed to make a calculation like I would in excel, however this only takes the total length in account.
The most ideal situation would be if I could have a specific calculation (like the example in the image) applied to every seperate object (2.1, 2.2, etc) and if I could somehow make the outcome of such calculation appear as a number on the object (as a tag maybe?). Currently I do this manual almost weekly, I would be open to scripting it but since I have almost no experience with vectorworks scripting I'd have no clue where to start.