Unfortunately this is too complex to accomplish through this forum.
You would have to redo all of your calculations so that you could use the flat fee. You would also have to update each of the pages where it is displayed. You can copy and paste the code from the cart to the other pages once it is correct, but a flat fee is done much differently than a per-letter price.