use ast_format for format_rate