Fixed mistake with calculating signature duration