fixed differentiator using wrong time