In a case like this I would charge by the hour. I don't know what that number would be - depends on what you feel comfortable with. However it is always best to have a signed agreement in advance, with an estimated price, so the customer knows what to expect.