Change hard coded 41 in calculateStockValue to rule length for customizability

Also surprised that I could make this change thru chrome on ipad.