Question : How long do most people visit San Francisco?
Answer : Of course you're not most people, but if you were, you'd stay roughly 17 days.
Question : If your plans are flexible, have you considered changing your departure day?
Answer : In March, Wednesday is your lowest-cost day to fly. Flexibility is paramount when booking travel plans in order to keep travel costs down.