Calculate Messages Start and End Position