add new version with different algorithm use datetime for claculating of time