DST offset calculation function added