materializing the calculation of the interval

Solutions that needs final adjusments and a bit of testing