set variable to value list items
I am creating a student database for a institute.
i have an attendance layout where user has an option to choose Absent or Present from value list.(Radio Button)
I would like to have an calucation feild which calculates attendance percentage, and would like to set values of 0 and 1 for Absent and Present.
can i get some ideas regarding this. thank you