Until for the continuing activity to a point in the future.
By for the finish of an activity at a point in the future.
- I’m staying in the city until June.
(continuing activity/staying) - I will keep working until I have finished.
- I will finish my journey by Friday.
(finish of something/journey) - Please have it finished by the deadline.