calculate_target: be more like Bitcoin source.