Clueless about Formulas????

Clueless about Formulas????

I have been trying to make a few fields in my Creator DB calulate together without much luck - I have tried just simple A + B = C - and that I read the directions which haven't really helped either.

THis is what I have so far that everytime I try to change or modify I get a message in the formula box that says undefined:

Number_of_Stores
(
type = number
decimalplace = 2
)
Number_of_Stations
(
type = number
decimalplace = 2

StoreCost
(
type = decimal
decimalplace = 2
)

StationCost
(
type = decimal
decimalplace = 2
)


Retail_Total
(
type = formula
value = (Number_of_Stores * StoreCost) + (Number_of_Stations * StationCost)
)


I tried StoreCost and StationCost as just numbers 159.00 and 99.00 but that didn't work - than I created two hiden fields called Store and Station costs and that didn't work.

If someone could tell me what I am doing wrong than I think I would be set for this and other calulations I need to make??

Thanks,

ep