I apologize if there is a solution to this. I have however browsed the forum and have not found something that fits.
When running this function the total is wrong. For example if I enter 6 Marks of 50 each it totals to 341 instead of 300. I am sure it is a simple mistake .