How to create score calculation in form?