Calculate attribute expeience cost

NOTE1: Figure out a way for the test to better explain the intent of the
code. The formula is pretty easy but the test just has examples.

NOTE2: Pretty much everything uses this same formula for experience with
the only difference being the cost of the first rank so this will get
generalized later.