ivle.worksheet.utils: Added calculate_mark, which is from the duplicated code in both bin/ivle-marks and ivle.webapp.tutorial.OfferingView.populate. This calculates a user's final mark for a subject. ivle-marks, ivle.webapp.tutorial: Call ivle.worksheet.utils.calculate_mark instead of manually calculating (avoid code duplication).