Revit API should enable creating a calculated value field in a schedule and also provide means to access and modify it (e.g. read and change the formula, name etc.). Simple as that.
Can't find what you're looking for? Ask the community or share your knowledge.