You have to negotiate your salary based on these assumptions. Or get paid hourly (as a consultant or contractor). I'm not currently hourly, but I am also not getting exploited, either. Most places I have worked didn't give a damn about their employees. They would just use them up and get new ones when people eventually got fed up and quit (or got sick and quit, in a few cases). When you bill hourly, projects are far more honest in terms of not shifting costs onto the staff.