It is not possible to bid something like this. Too many unknowns.
T & M is the only safe way to go.
But at about $200.00 plus per hour, which is what most of you flat rate guys seem to charge, you probably won't get the job.