rigidbody addforce acceleration

hello I am making a game in which obstacles toward you and you have to dodge them, so i want the obstacles to accelerate overtime please help

// Update is called once per frame
    void Update()
    {
        rigidbody.AddForce(0, 0, -5000 * Time.deltaTime);
     

    }
}

instead of writing -5000,create a int value,and every frame make the amount change like this:

int force=-5000;
void Update()
{
rigidbody.AddForce(0,0,*Time.deltaTime);
force=force-100;

}