Umm, just click on fare class on any available flight. The data is right there.
If you download the greasemonkey script, you won't even have to click.
Search in this forum for "expert flyer mode" and you'll find the thread.
Your idea won't account for SDC, IRROPS, pass riders, or hundreds of other scenarios.