Table view ready.
Start to write calculation functions.