Voting hours are normally like a 12 hour window, in cambridge it's from 7am - 8pm https://www.cambridgema.gov/Departments/electioncommission
If you can't do that, then you can do an absentee ballot.