Formula g