improvement in the way the end arc is calculated

Signed-off-by: Ruben Mendez <ruben.mendez@gmail.com>
Merge pull request #3 from minube/development

improvement in the way the end arc is calculated