First thing first, you are running into something called the sunk cost fallacy. What is done is done, and when making decisions you cannot turn back time: it often is not useful to worry about it.
Of course, I’m still happy to help you do this! There are a few things you have to take into account here, some of them industry (salary) and country (tax) specific, but it is likely not as bad as you are thinking. As you say in your post, it is hard to determine differences between salary levels of a whole career- when I do it I look at payscale or a similar site, and use the differences in median income between two positions. The purest form of calculating opportunity cost is to compare the costs of one course of action to another. You need two numbers, what you make now, extrapolated into the future, and then what you could have made. I would do it like so:
Current course of action= [Sum of Income for all 7 years (income-expenses and loans)]-[Taxes (if not already in expenses- depending on what country you live in this can be hugely different case to case- While I was in school I often had income through taxes instead of having to pay anything.)]+[Difference in income between salary of non-degreed job and degreed job for however many years you are planning on working. If you follow the way of the mustache, you are allowed to compound this, as you will be using it to grow your magnificent mustache)
Next best course of action= [Likely salary for 7 years – likely expenses]- [probably higher taxes]+ [Again, if you were likely to have invested savings, you can add the interest here.)
Subtract the next best course of action from the current course, and you find the opportunity cost of choosing what you chose.
As someone who is just finishing school themselves, part of the reason I went is to raise my wage level. I am an accountant, and once I have my ‘stache filled up, I can work part time during the tax season and make what I need for a whole year (about what I would have made if I had kept in customer service working a whole year) and let my savings compound without needing to draw on them. Being financially independent is very important to me, but I honestly enjoy my work, and working a seasonal job sounds great to me.