bugfix on calcing acceleration time

fixed wrong calculation of acceleration time for sinoid profile