From one of the best article I’ve read on the subject- the formula to calculate the maximum bid for your keywords:

Max CPC = (profit per customer) x (1 – profit margin) x (website conversion rate)

Read the full article at Kissmetrics.com