How long does it take to get from Puerto Rico to Massachusetts?

That depends on where in Massachusetts you want to go. There are direct flights from San Juan to Boston, and vice versa. You can find out the travel time by calling any of the airlines that fly to and from San Juan.