Deductions & credits

If this second home was not a rental property then when it asks for the adjusted basis you will enter the total you have calculated as one amount ... there is no "form or attachment" to add to the return.  If the IRS questions your figure later you can address it then.