Divide the monthly rent by the number of days in the month, then multiply by the days you occupy. $1,800 in a 30-day month, for 10 days, is $600. The same 10 days in a 31-day month is a smaller share.
Some leases divide by 30 even in a 31-day month. Use the divisor the lease names. This page uses the day count you enter.