How can I create auto calculate for the marks?