The standard candle aspect of carbon stars