Change cloth end_frame in python script
It is a setting of the added cloth modifier.



context.object.modifiers['Cloth'].point_cache.frame_end 


(where the cloth modifiers name is "Cloth" and the object has context) 

The tooltip is spot on in later versions of blender.

Note may have to mouse over properties area to redraw and see new value.