Read the tutorial at http://codeontime.com/learn/getting-started/implementing-custom-action.
Read the tutorial at http://codeontime.com/learn/getting-started/creating-calculated-fields.
Read the tutorial at http://codeontime.com/learn/getting-started/creating-many-to-many-fields.