define event total cost in student model